﻿using System;
using System.Collections.Generic;
using System.Linq; 

namespace DataAccess.DTO
{
    public class Result
    {
        /// <summary>
        /// 查询状态，true 正常，false 失败
        /// </summary>
        public bool State { get; set; }
        /// <summary>
        /// 返回信息说明
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 返回数据
        /// </summary>
        public object Datas { get; set; }    
 
    }

    public class PageData<T>
    {
        /// <summary>
        /// 分页查询，总页数
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// 每页条数
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 分页查询，列表数据
        /// </summary>
        public List<T> Rows { get; set; }
    }
     
}